import { Button } from 'antd';
import { styled } from '@umijs/max';

const Abc = styled.h2`
  color: red;
  font-size: ${(props: { size: string }) => props.size + 'px'};
`;

const Index = () => {
  return (
    <>
      <Abc size="20">antd</Abc>
      <Abc size="50">antd</Abc>
      <Button type="primary">按钮</Button>
    </>
  );
};

export default Index;
